import { reactive, ref } from "vue";

export default function InitHook() {
  const formState = reactive<CustomerServiceWaybill.BatchImport>({
    file: []
  });
  const formDataRef = ref<any>(null);
  const submitLoading = ref<boolean>(false);
  const drawerOpts = reactive<Base.DrawerOpts>({
    title: "",
    width: "520px",
    component: "",
    visible: false,
    type: 1,
    passData: {}
  });
  return {
    formState,
    formDataRef,
    submitLoading,
    drawerOpts
  };
}
